package action.chap6;

import action.chap4.Dish;
import action.chap4.DishUtils;

import java.util.List;

import static java.util.stream.Collectors.joining;

public class Demo623 {
    public static void main(String[] args) {
        List<Dish> menu = DishUtils.getListDish();
        String collect = menu.stream().map(Dish::getName).collect(joining(","));
        System.out.println(collect);

    }
}
